package exceptions;

public class MyExceptions {
	
	private class NonsenseException extends Exception{

		private static final long serialVersionUID = -3893664000284786793L;
		
		public NonsenseException(String name){
			System.err.println(name + " did something seriously wrong...");
		}
		
	}
	
	public void run(){
			try {
				throw new NonsenseException("Lucas");
			} catch (NonsenseException e) {
				System.exit(1);
			}
	}
	
	public static void main(String[] args) {
		MyExceptions me = new MyExceptions();
		me.run();
	}

}
